package com.ww.orm.entity;

import javax.persistence.*;
import java.util.Objects;

/**
 * @author sunnannan
 * @version 1.0
 * @date 2020/11/23 11:47 上午
 */
@Entity
@Table(name = "act_hi_identitylink", schema = "aceace", catalog = "")
public class ActHiIdentitylinkEntity {
    private String id;
    private String groupId;
    private String type;
    private String userId;
    private String taskId;
    private String procInstId;

    @Id
    @Column(name = "ID_")
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Basic
    @Column(name = "GROUP_ID_")
    public String getGroupId() {
        return groupId;
    }

    public void setGroupId(String groupId) {
        this.groupId = groupId;
    }

    @Basic
    @Column(name = "TYPE_")
    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Basic
    @Column(name = "USER_ID_")
    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    @Basic
    @Column(name = "TASK_ID_")
    public String getTaskId() {
        return taskId;
    }

    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }

    @Basic
    @Column(name = "PROC_INST_ID_")
    public String getProcInstId() {
        return procInstId;
    }

    public void setProcInstId(String procInstId) {
        this.procInstId = procInstId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        ActHiIdentitylinkEntity that = (ActHiIdentitylinkEntity) o;
        return Objects.equals(id, that.id) &&
                Objects.equals(groupId, that.groupId) &&
                Objects.equals(type, that.type) &&
                Objects.equals(userId, that.userId) &&
                Objects.equals(taskId, that.taskId) &&
                Objects.equals(procInstId, that.procInstId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, groupId, type, userId, taskId, procInstId);
    }
}
